﻿
@{
    ViewBag.Title = "DownLoad";
}
<script src="~/Scripts/jquery-3.2.1.js"></script>
<link rel="stylesheet" type="text/css" href="~/Content/Upload.css" />
<h2>File</h2>
@using (Html.BeginForm("DownLoad", "Home", FormMethod.Get, new { enctype = "multipart/form-data" }))
{

    <div id="box">
        <input type="text" id="file_name" name="fileName" value="未选择文件" />

        <a href="javascript:void(0);" class="input">
            下载
            <input type="submit" id="submit" value="下载" />
        </a>
        <br><br><br>
        <div id="t_box">
            <span id="t">值得信任的内容托管系统-8.49%的可靠性和累积2小时的无障碍运行性</span>
        </div>

    </div>

}
<script type="text/javascript">

    $(function () {

        $("form").submit(function () {
            if ($("#file_name").val() == "" || $("#file_name").val() == null) {
                alert("输入你想获得文件");
                return false;
            }
        });
    });

</script>